package org.ucas.kgraph.dto;

import com.alibaba.fastjson.JSON;
import com.google.common.base.Defaults;
import org.springframework.http.HttpStatus;
import org.ucas.kgraph.entity.Account;
import org.ucas.kgraph.entity.Role;
import org.ucas.kgraph.entity.Term;
import org.ucas.kgraph.utils.exception.NotFoundException;

import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Array;
import java.sql.Date;
import java.util.Arrays;
import java.util.List;
import java.util.Map;


public class RoleDto  {

  public Long id;

  public String name;
  
  public static RoleDto of(Role role){
    RoleDto roleDto = new RoleDto();
    roleDto.id = role.getId();
    roleDto.name=role.getName();
    return roleDto;
  }



public Long getId() {
	return id;
}



public void setId(Long id) {
	this.id = id;
}



public String getName() {
	return name;
}



public void setName(String name) {
	this.name = name;
}

 
}
